package com.xoa.service.easyReport;

import com.xoa.model.easyReport.RepField;
import com.xoa.model.easyReport.RepTable;
import com.xoa.util.ToJson;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;


public interface RepFieldService {

    ToJson<RepField> inserRepField (RepField repField);

    ToJson<RepField> importField (MultipartFile file, Integer repTableId);

    ToJson<RepField> updateRepField (RepField repField);

    ToJson<RepField> deleteRepField(Integer repTableId);

    ToJson<RepField> getFieldByFieldId(Integer fieldId);

    ToJson<RepField> findRepField(RepField request);

    ToJson<RepTable> getFieldByTableId(Integer tableId,Integer type);

    List<RepField> recursionField(Integer repTableId);
}
